package com.quzitech.efest.utils;

import java.util.List;

import com.quzitech.efest.protocol.ConCreteCmd.ITYPE;

public class InitChartXYlist {
	public static List<Integer> setX(List<Integer> xList2) {
		for (int i = 0; i < 12; i++) {
			switch (i) {
			case 0:
				xList2.add(0);
				break;
			case 1:
				xList2.add(100);
				break;
			case 2:
				xList2.add(126);
				break;

			case 3:
				xList2.add(159);
				break;

			case 4:
				xList2.add(200);
				break;
			case 5:
				xList2.add(252);
				break;
			case 6:
				xList2.add(318);
				break;
			case 7:
				xList2.add(400);
				break;
			case 8:
				xList2.add(500);
				break;
			case 9:
				xList2.add(635);
				break;
			case 10:
				xList2.add(800);
				break;
			case 11:
				xList2.add(1000);
				break;

			default:
				break;
			}
		}

		return xList2;

	}

	public static List<Double> setY(int Slotnotype, List<Double> ylist) {
		if (Slotnotype == 0) {
			return ylist;
		}
		ylist.clear();
		switch (Slotnotype) {
		case ITYPE.LION:

			for (int i = 0; i < 6; i++) {
				switch (i) {
				case 0:
					ylist.add(0, 2.0);

					break;
				case 1:
					ylist.add(1, 2.5);
					break;
				case 2:
					ylist.add(2, 3.0);
					break;
				case 3:
					ylist.add(3, 3.5);
					break;
				case 4:
					ylist.add(4, 4.0);
					break;
				case 5:
					ylist.add(5, 4.5);
					break;
				}
			}

			break;
		case ITYPE.LIFEPO4:
			for (int i = 0; i < 5; i++) {
				switch (i) {
				case 0:
					ylist.add(0, 2.0);
					break;
				case 1:
					ylist.add(1, 2.5);
					break;
				case 2:
					ylist.add(2, 3.0);
					break;
				case 3:
					ylist.add(3, 3.5);
					break;
				case 4:
					ylist.add(4, 4.0);
					break;
				}
			}
			break;
		case ITYPE.NI_CD:
			for (int i = 0; i < 5; i++) {
				switch (i) {
				case 0:
					ylist.add(0, 0.8);
					break;
				case 1:
					ylist.add(1, 1.0);
					break;
				case 2:
					ylist.add(2, 1.2);
					break;
				case 3:
					ylist.add(3, 1.4);
					break;
				case 4:
					ylist.add(4, 1.6);
					break;
				}
			}
			break;
		case ITYPE.NI_MH:
			for (int i = 0; i < 5; i++) {
				switch (i) {
				case 0:
					ylist.add(0, 0.8);
					break;
				case 1:
					ylist.add(1, 1.0);
					break;
				case 2:
					ylist.add(2, 1.2);
					break;
				case 3:
					ylist.add(3, 1.4);
					break;
				case 4:
					ylist.add(4, 1.6);
					break;
				}
			}
			break;

		}
		return ylist;
	}
}
